{extend name="base"}
{block name="content"}
<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('Ad/index')}">网站广告</a></li>
			<li><a href="{:url('Ad/add')}">添加广告</a></li>
		</ul>
		<form method="post" class="js-ajax-form" action="term/listorders">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th width="50">ID</th>
						<th>广告名称</th>
						<th>调用代码</th>
						<th width="120">操作</th>
					</tr>
				</thead>
				<tbody>
					
					{foreach name="ad" item="vo"}
					<tr>
						<td>{$vo.ad_id}</td>
						<td>{$vo.ad_name}</td>
						<td>{$vo.ad_content}</td>
						<td>
							<a href="{:url('Ad/edit',['ad_id'=>$vo['ad_id']])}">修改</a>|
							<a href="{:url('Ad/del',['ad_id'=>$vo['ad_id']])}" class="js-ajax-delete">删除</a>
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
		</form>
	</div>
{/block}